Deprecate the old combobox text convenience api
authorMatthias Clasen <mclasen@redhat.com>
Fri, 15 Oct 2010 20:33:11 +0000 (16:33 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 15 Oct 2010 20:58:27 +0000 (16:58 -0400)
gtk/gtkcombobox.c
gtk/gtkcombobox.h

index 8f72807c90ce18dcda093983a3546fdba1794375..a649c0f6526521313b802229c1531c88f210a4df 100644 (file)
@@ -5287,6 +5287,8 @@ gtk_combo_box_get_model (GtkComboBox *combo_box)
  * Return value: (transfer none): A new text combo box.
  *
  * Since: 2.4
+ *
+ * Deprecated: 2.24: Use #GtkComboBoxText
  */
 GtkWidget *
 gtk_combo_box_new_text (void)
@@ -5318,6 +5320,8 @@ gtk_combo_box_new_text (void)
  * gtk_combo_box_new_text().
  *
  * Since: 2.4
+ *
+ * Deprecated: 2.24: Use #GtkComboBoxText
  */
 void
 gtk_combo_box_append_text (GtkComboBox *combo_box,
@@ -5349,6 +5353,8 @@ gtk_combo_box_append_text (GtkComboBox *combo_box,
  * with gtk_combo_box_new_text().
  *
  * Since: 2.4
+ *
+ * Deprecated: 2.24: Use #GtkComboBoxText
  */
 void
 gtk_combo_box_insert_text (GtkComboBox *combo_box,
@@ -5381,6 +5387,8 @@ gtk_combo_box_insert_text (GtkComboBox *combo_box,
  * gtk_combo_box_new_text().
  *
  * Since: 2.4
+ *
+ * Deprecated: 2.24: Use #GtkComboBoxText
  */
 void
 gtk_combo_box_prepend_text (GtkComboBox *combo_box,
@@ -5410,6 +5418,8 @@ gtk_combo_box_prepend_text (GtkComboBox *combo_box,
  * this function with combo boxes constructed with gtk_combo_box_new_text().
  *
  * Since: 2.4
+ *
+ * Deprecated: 2.24: Use #GtkComboBoxText
  */
 void
 gtk_combo_box_remove_text (GtkComboBox *combo_box,
@@ -5442,6 +5452,8 @@ gtk_combo_box_remove_text (GtkComboBox *combo_box,
  *     Must be freed with g_free().
  *
  * Since: 2.6
+ *
+ * Deprecated: 2.24: Use #GtkComboBoxText
  */
 gchar *
 gtk_combo_box_get_active_text (GtkComboBox *combo_box)
index 0ece10f7dae3daa68856783f75ab8afa5320b72e..42476b0572b5bddf5f6bcda24dcfd9f648310b40 100644 (file)
@@ -124,6 +124,8 @@ void               gtk_combo_box_set_entry_text_column  (GtkComboBox        *com
                                                         gint                text_column);
 gint               gtk_combo_box_get_entry_text_column  (GtkComboBox        *combo_box);
 
+#ifndef GTK_DISABLE_DEPRECATED
+
 /* convenience -- text */
 GtkWidget    *gtk_combo_box_new_text         (void);
 void          gtk_combo_box_append_text      (GtkComboBox     *combo_box,
@@ -137,6 +139,8 @@ void          gtk_combo_box_remove_text      (GtkComboBox     *combo_box,
                                               gint             position);
 gchar        *gtk_combo_box_get_active_text  (GtkComboBox     *combo_box);
 
+#endif
+
 /* programmatic control */
 void          gtk_combo_box_popup            (GtkComboBox     *combo_box);
 void          gtk_combo_box_popup_for_device (GtkComboBox     *combo_box,